package com.test.common.repository.perf;

import com.test.common.entity.perf.PerfReportBaseEntity;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PerfReportBaseRepository extends MongoRepository<PerfReportBaseEntity, String> {

	List<PerfReportBaseEntity> findAllByReportId(String reportId);

	List<PerfReportBaseEntity> findAllByReportId(String reportId, Pageable pageable);

	void deleteAllByReportId(String reportId);

}
